using Framework;
using Framework.Event;

namespace Game
{
    [Event(GlobalEventType.PauseFight)]
    public class PauseFight_OpenPausePanel : BaseEvent
    {
        public override void Run()
        {
            this.OpenMainPanel().Coroutine();
        }

        public async FVoid OpenMainPanel()
        {
            await GameEntry.UI.OpenUI(AssetUtility.GetUIPath("Fight/FightPausePanel"));
        }
    }
}